<?php
// Module Definition
$module['name'] = 'Tomcat';
$module['description'] = 'Maintain tomcat virtual host configuration for jsp file support.';

switch($action) {
	case 'register':
		break;
	case 'unregister':
		break;
	case 'enable':
		break;
	case 'disable':
		break;
	case 'hook':
		register_hook('server:domain:sys', 'tomcat_sys');
		register_hook('server:domain:create', 'tomcat_domain_create');
		register_hook('server:domain:remove', 'tomcat_domain_remove');
		register_hook('server:domain:suspend', 'tomcat_domain_suspend');
		register_hook('server:domain:unsuspend', 'tomcat_domain_unsuspend');
		register_hook('server:domain:update', 'tomcat_domain_update', 1);
		register_hook('server:service:monitor', 'tomcat_monitor');
		register_hook('web:server:templates', 'tomcat_template');
		register_hook('web:lang', 'tomcat_add_lang');
		register_hook('web:cfg:default', 'tomcat_add_cfg');
		register_hook('server:cfg:default', 'tomcat_add_cfg');
		register_hook('web:cfg:set', 'tomcat_set_cfg');
		register_hook('server:cfg:set', 'tomcat_set_cfg');

		register_hook('server:service:start:tomcat', 'tomcat_start');
		register_hook('server:service:stop:tomcat', 'tomcat_stop');
		register_hook('server:service:restart:tomcat', 'tomcat_restart');
		break;
}
?>